package com.bjpowernode.mapper;

import com.bjpowernode.annotation.DataScope;
import com.bjpowernode.entity.TUser;
import com.bjpowernode.entity.TUserDO;
import com.bjpowernode.query.BaseQuery;

import java.util.List;

public interface TUserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TUser record);

    int insertSelective(TUser record);

    TUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TUser record);

    int updateByPrimaryKey(TUser record);

    @DataScope(tableAlias = "tu", tableFeild = "id")  // tu.id = 12
    List<TUser> selectUserPage(BaseQuery baseQuery);

    TUser selectUserByLoginAct(String loginAct);

    int deleteByIdList(List<String> idList);

    List<TUserDO> selectByAll();
}